﻿using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using com.guojin.core.io;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{

    public class ClubInfoRets : Message
    {
        public static int TYPE = 7;
        public static int ID = 74;
       
        private List<OnePeopleInfo> oneList;
        private int AllNumber;//总人数
        private int NowNumber;//现有人数
        private int clubID;
        public List<OnePeopleInfo> OneList
        {
            get
            {
                return oneList;
            }

            set
            {
                oneList = value;
            }
        }

        public int AllNumber1
        {
            get
            {
                return AllNumber;
            }

            set
            {
                AllNumber = value;
            }
        }

        public int NowNumber1
        {
            get
            {
                return NowNumber;
            }

            set
            {
                NowNumber = value;
            }
        }
        public int ClubID
        {
            get
            {
                return clubID;
            }

            set
            {
                clubID = value;
            }
        }
        public void decode(core.io.Input _in)
        {
            int len = _in.readInt();
            if (len > 0)
            {
                oneList = new List<OnePeopleInfo>();
                for (int i = 0; i < len; i++)
                {
                    OnePeopleInfo oneClubInfo = new OnePeopleInfo();
                    oneClubInfo.decode(_in);
                    oneList.Add(oneClubInfo);
                }
            }
            NowNumber = _in.readInt();
            AllNumber = _in.readInt();
            clubID = _in.readInt();
        }
        public void encode(Output _out)
        {
           
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            string m= "0";
            if (oneList!=null)
            {
                m = oneList.Count.ToString();
            }
            return m+ "AllNumber"+ AllNumber+"now"+NowNumber;
        }
    }
}